/*
 * @Author: chengsl
 * @Date: 2023-01-10 15:03:13
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-10 15:03:14
 * @Description: 日历饼图 widgetScatter
 */
export default {
  calendar: {
    top: 'middle',
    left: 'center',
    orient: 'vertical',
    cellSize: [80, 80],
    yearLabel: { show: false, fontSize: 30 },
    dayLabel: {
      margin: 20,
      firstDay: 1,
      nameMap: ['周日', '周一', '周二', '周三', '周四', '周五', '周六', '周日'],
      show: true,
      position: 'end',
      color: '#fff',
      fontWeight: 'normal',
      fontSize: 12,
      align: 'center'
    },
    monthLabel: { show: false },
    range: ['2022-11']
  },
  tooltip: {
    trigger: 'item',
    show: true,
    triggerOn: 'mousemove|click',
    axisPointer: { type: 'line' },
    textStyle: { fontSize: 16 }
  },
  legend: {
    data: ['早餐', '中餐', '晚餐'],
    bottom: 'bottom',
    show: true,
    left: 'center',
    top: 'bottom',
    orient: 'horizontal',
    textStyle: { color: '#A9B2BC', fontSize: 12 },
    itemWidth: 12
  },
  color: [
    '#0060FF',
    '#3BD6FF',
    '#948BEA',
    '#F78D94',
    '#FF7A45',
    '#FCBB61',
    '#36CFC0'
  ],
  title: {
    text: '',
    show: false,
    left: 'center',
    textStyle: { color: '#fff', fontSize: 20, fontWeight: 'normal' },
    subtext: '',
    subtextStyle: { color: '#fff', fontWeight: 'normal', fontSize: 20 }
  },
  series: [
    {
      id: 'label',
      type: 'scatter',
      color: '#ff0000',
      coordinateSystem: 'calendar',
      symbolSize: 0,
      label: {
        show: true,
        formatter: {
          _custom: {
            type: 'function',
            display:
              '<span style="opacity:.5;">function</span> formatter(params)',
            tooltip:
              '<pre>function formatter(params) {\n            return echarts__WEBPACK_IMPORTED_MODULE_9__["time"].format(params.value[0], \'{dd}\', false);\n          }</pre>',
            _reviveId: 0
          }
        },
        offset: [-30, -30],
        fontSize: 14
      },
      data: [
        ['2022-11-01', 2253],
        ['2022-11-02', 7849],
        ['2022-11-03', 4006],
        ['2022-11-04', 1569],
        ['2022-11-05', 5050],
        ['2022-11-06', 130],
        ['2022-11-07', 3189],
        ['2022-11-08', 9742],
        ['2022-11-09', 7333],
        ['2022-11-10', 1017],
        ['2022-11-11', 5336],
        ['2022-11-12', 1191],
        ['2022-11-13', 2666],
        ['2022-11-14', 3978],
        ['2022-11-15', 378],
        ['2022-11-16', 962],
        ['2022-11-17', 5487],
        ['2022-11-18', 1279],
        ['2022-11-19', 6117],
        ['2022-11-20', 4557],
        ['2022-11-21', 2956],
        ['2022-11-22', 6533],
        ['2022-11-23', 8347],
        ['2022-11-24', 8453],
        ['2022-11-25', 217],
        ['2022-11-26', 8822],
        ['2022-11-27', 9480],
        ['2022-11-28', 421],
        ['2022-11-29', 2261],
        ['2022-11-30', 5218]
      ]
    },
    {
      type: 'pie',
      id: 'pie-0',
      center: '2022-11-01',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 12 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-1',
      center: '2022-11-02',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 14 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-2',
      center: '2022-11-03',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 14 },
        { name: '晚餐', value: 13 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-3',
      center: '2022-11-04',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 16 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-4',
      center: '2022-11-05',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 20 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-5',
      center: '2022-11-06',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 22 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-6',
      center: '2022-11-07',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 28 },
        { name: '晚餐', value: 14 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-7',
      center: '2022-11-08',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 16 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-8',
      center: '2022-11-09',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 12 },
        { name: '晚餐', value: 14 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-9',
      center: '2022-11-10',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 14 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-10',
      center: '2022-11-11',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 8 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-11',
      center: '2022-11-12',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-12',
      center: '2022-11-13',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 10 },
        { name: '晚餐', value: 17 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-13',
      center: '2022-11-14',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 17 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-14',
      center: '2022-11-15',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 14 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-15',
      center: '2022-11-16',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 12 },
        { name: '中餐', value: 14 },
        { name: '晚餐', value: 22 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-16',
      center: '2022-11-17',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 14 },
        { name: '晚餐', value: 24 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-17',
      center: '2022-11-18',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 24 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-18',
      center: '2022-11-19',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 24 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-19',
      center: '2022-11-20',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 17 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-20',
      center: '2022-11-21',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 17 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-21',
      center: '2022-11-22',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 5 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 16 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-22',
      center: '2022-11-23',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 16 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-23',
      center: '2022-11-24',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 0 },
        { name: '中餐', value: 14 },
        { name: '晚餐', value: 16 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-24',
      center: '2022-11-25',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 14 },
        { name: '晚餐', value: 12 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-25',
      center: '2022-11-26',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 8 },
        { name: '中餐', value: 12 },
        { name: '晚餐', value: 12 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-26',
      center: '2022-11-27',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 7 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-27',
      center: '2022-11-28',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 6 },
        { name: '中餐', value: 22 },
        { name: '晚餐', value: 18 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-28',
      center: '2022-11-29',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 8 },
        { name: '中餐', value: 22 },
        { name: '晚餐', value: 26 }
      ]
    },
    {
      type: 'pie',
      id: 'pie-29',
      center: '2022-11-30',
      radius: 30,
      coordinateSystem: 'calendar',
      label: { formatter: '{c}', position: 'inside' },
      data: [
        { name: '早餐', value: 4 },
        { name: '中餐', value: 16 },
        { name: '晚餐', value: 26 }
      ]
    }
  ]
}
